package com.lee.adapter;

/**
 * 功能描述:
 *
 * @author liping(lpaidd50@gmail.com)
 * @version v1.0
 * @date 2017/3/24
 */
public class Main {
	public static void main(String[] args) {
		//class adapter
		Adapter adapter = new Adapter();
		adapter.method1();
		adapter.method2();
		Source source = new Source();
		// object adapter
		ObjecAdapter objecAdapter = new ObjecAdapter(source);
		objecAdapter.method1();
		objecAdapter.method2();
		//interface adapter
		Method1 method1 = new Method1();
		method1.method1();
		method1.method2();
		Method2 method2 = new Method2();
		method2.method1();
		method2.method2();
	}
}
